package com.example.excel;
import com.alibaba.excel.EasyExcel;

/**
 * Created by IntelliJ IDEA2021.3
 * @Author: Tenghw
 * @Date: 2022/11/08  13:42
 * @Description:
 */
public class ExcelRead {
    public static void main(String[] args) {
        // 要读取的excel文件的路径
        String fileName = "E:\\exceldemo\\01.xlsx";
        // 调用read方法实现读取操作
        EasyExcel.read(fileName, UserData.class, new ExcelListener()).sheet("用户信息").doRead();
    }
}
